package com.wmd.validation.annotation;


import com.wmd.validation.validations.DateTimeValidator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


/**
*类说明
*@author yincheng lu
*@time 2019年1月7日上午9:36:20
*@Description
*/
@Target({ElementType.FIELD, ElementType.PARAMETER})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = DateTimeValidator.class)
public @interface DateTime {

    String message() default "格式错误";

    String format() default "yyyy-MM-dd";
    
    boolean special() default false;

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
}
